fixed a serious bug for incremental training