Fixed an error with ContextMenu