Fixes #4 by setting the background earlier