fixed an error in the model