mongoose model related bug fixed