fixed bug when deleting last favorite from preferences