Cant repaint by timer