Fixed bug with _id not getting copied to id.