fix bug of not printed favorites