fixing activity count