fixing all errors in schema