fix bug with category in add dialog whem try editting