fixed error if item doesnt have a date