Fix end_tran innefficiency