Fixed erroneous setting of expected_x when expected_xT was meant.