Fixed a bug in checkForBlocks()