fixed tile-cycling bug