fixed bug in get_first_block and return_blocks -> ref_dict was
not producing values contained in lists.