fix bug with category