fix bug in T_extreme