UCT: Add missing parity correction for the prior function