Corrected bug with setting level violations