fix tileSize and scaling