fixes bug where badges wouldn't show