Fix action menu creation.