fix double-loop queue bug