Fix addViolation calls

Fixes issue introduced in #124