Fixed not working repaint