fixes get_blocktype(..).