fix bug about categories