Fixed bug in negative maxcluster