fix bug of learning process