fix exists check for _id