Fixed so that the right coordinate is sent to the server