Fix bug in cluster view when cluster group indices are not consecutive.