Fixed logic and reference bug for enqueue methods