Fix crash on launch. (issue #7)