Fix handling of format_status arguments (thanks to Nbaronov)