fix shadowed path variable