Fix Training bug