setted offset but modal states on the screen edge