fixing PaintingView errors