fixing faulty call to format_date()