Fix the window scrolling to the top when opening the modal box on magic page