Fix open bad date issue