Fix tile bug