fix a bug in queueAdjVertex