fixed short path bug.