Fixed bug that wasn't allowing dynamic re-positioning of the modal