fix transition from A to B