fix double enqueue bug