fixing enquing race condition