Fix queue deletion.