Made minor fix with return in model