fix bug in fav controller