Fixing bug where extension goes 'inactive' and doesn't update email count