fix the bug in XlReset()