Fixed few bugs in training(s)