Correct a bug on offset in auto