fixed an issue with date set in objects