fix issue with _id not being set