Fixed a bug deleting favourites introduced in the last change.