correction of arror in threadsafequeue