fix to createQueue