fix crash in favorite