Fixed the issue with some special menu items on OS X (closes #163).