fixed bug in queued processing