fix chargen_active calculation.  Issue #10.