Correct implementation of autooffset_reset