Resolved resetting coordinates too soon