Fix relative date problems