Fixed model enroll function error in mongoose tpl