Fixing notification display bug

Fixing a bug that causes some errors during badge publishing to display improperly.