fix incorrect passing of path kw