fix precomputation of prior knowledge #45