fix date problems