fix reference to id with _id