Fixed a case where certain DB fields got incremented when stats were off.