Correct invalid vertex weights automatically.