Fixed redraw bug on background change