fix loading model in view