Fix for schema_specified  case in refresh_schema