fixing issue with no supplied date