small fixes to date