fix train.py bug