Fixed Queue api bug