fix paint bugs
fix paint bugs2
fix paint bugs3