fixes #662 issue with the submenu_divider

As the title says this pull request fixes #662.