fix paintingView issue