fixed bugs related inspect_as_dct