fix fail method in the middle