Fixed error when no latent variables