favoriting/unfavoriting ajax bug fixed