fix: change final place where spectral embedding is called