fix bug in quiet mode