#678 Moves the position of the modal into the correct position

Fixes #678