Fix category admin edit function