solved losing categories on canceled edit