fix for date objects #6