fixed bug of category window