Fix black screen on startup bug.