Fixed error in model causing runtime error.