minor fix for training