fixed bug that caused no badges on iOS7