Fix autoClose fail when singleDate is true
Merge pull request #25 from lingceng/master

Fix autoClose fail when singleDate is true