Main menu crash fix (issue #124)