fixing tile rendering