Fix “transformInner” behaviour (fixes #4)