Fix a crash on start bug

Fix stupid bug introduced by me in 85b4fc6.