bug fix on path parsing