bug fix for favorite ordering