Fixed bug in readBlockTiles