fixed tile drawing bug