fix findAndmodify in mongo