modal repositioning fix