fix a bug that lead to find up level node unsuccessfully