fixed inspect_serialized_state