Fixed the issue with coordinates repeating