correct error in model