Fixing awarding badges process during grading

When submitting the grading form with a badge marked as complete, I get an error "WARNING: Can't mass-assign protected attributes: :badge_id => badge.id"