fix path helpers returning nil with certain arguments