fixed bug in EXPIRED queue