update all path when one query finished