Bug fixing adapt transformer