Fixing bug with editing a badge