Fixed weird issue with hidden modal window placement