fix null pointer when add fav