Fixed menu helper to not crash.