fixed bug where all blocks could be replaced.