addPath to addpath bug fix