Good catch, that's wrong indeed. But what your proposing is also wrong. Should just always be fromPath (fromPath vs. toPath depending on reverse is handled above).