Add more debug
Fix small bug in pretraining