Fixed bug - exiting while minimized...

.. would write negative values to x and y position