fix a bug of the worklist algorithm for pt analysis