fixed initial date and scrollbar bug