fixes schema not defined in model