fix setPaintBg issue