Several bugs fixed on categories and favorites