fix category selected bug