fixed selected tile bug