fix for queue delete issue