Fix x and y of getTile