fixed double enqueue problem