fix syntax error in mongoose schemas