Fix a bug that would not paint correctly all the slider backgrounds