Fixed menu disappearing issue.

Fixed menu disappearing issue.