fix the bug of date selector in home page