Fixed runtime error with menu