fixed potential bug in latent variables in postings