Fixed tilesize bug