fixed that queue.offer isn't executed when beforeEnqueue method isn't implemented