Fix a painting error.