fixed bug when clicking add to favs with no id in textBox