fix date parse issue