Fixed an error with wrong coordinates