fixing total applications count