Edit category bug fixed