fixed badge drawing