fix error with updating schemas