Fix a bug in the favorite bar