bugfix in generate_cluster_ifm, nargin charge was wrong