Fix autoClose fail when singleDate is true