Some addBlock() bugfixes.