Fixing menu invocation return value