Fix queue cancel bug