fix for tile bugs