fix a missing brace and change id to _id