Fix flickering with wx renderer