ast path bug fix