fixed "null " path bug