added lock on auto-correction