Fix schema type