Fixed preparation of refined communities.

Fixed error of getting 5 nodes for a community while performing iterations.