Granting custom badges is not working

I think I may be getting the same issue: Grant a badge to individual users manually