fix initial date issue