fix edit category bug