-fixed bug with categories