fixed blocktype initialization bug