fixed active learning bug located by Ariel