fix if_path

this is why all parameter manipulation should happen at the beginning of
the method