compare strings instead of objectId (bug)