bugfix for badges