Fixed the paint method

fixed the paint method (i think)