fix for empty date