fix for adding date