Badge fixes

For https://github.com/theodi/shared/issues/329