fix Cannot redeclare format_interval error