Actually fixed the repaint bug...I think...