fixed nan-cluster bug