Fixed warnings in model.