small fix in new painter