fix date bug for firefix.