fixed the tile selection offset problem