fix menu helper. Fixes #265