Fix menu construction on editors