small fix in path code