Fix some bug in exploring multiple paths (but still buggy).