fixed badge count issue in ios6 and ios 7