fixed references to tilesLayout