testDirection in context menu fixed