Fixes issue with wrong path stored for set calls