fixing bug with editing a badge