fix exception when in painting, change some properties in service models