Fixed a few issues with checking replacable blocks.