badge attribution bugfix