Fix error if not violation
Fix error on drawing graph