fix for updating schema type