fixed a few bugs in block factory read