Removed Bug. Wrong calculation of elements with nontrivial activity.