path 负数bug fix