Fixed processing of priors in topology algorithms