Fix tileSize problem