fixed empty schema corner case