Fix for enqueue