fix small date issue