Window cannot be moved outside of the page. +bugfix