Get rid of white flash on startup

Special thanks to @mephux for finding this fix!

closes #891