fixed resolve current schema

resolve_current_instance dies with error when current instance in object