fix format_error cycle