Fix get model in view