Fixed error in model/view