fixes to date