fixed AttributeError: 'Permutation' object has no attribute 'getId'