fixed a bug with entering the coordinates