I've just checked, but can not confirm that problem.

Maybe something in your code sets bg to zero? It only clears the background when it's nonzero.