fixed a bug about incremental learning