fix (f) and (g) sourc-target configuration transitions - +-1 error