Error corrected in MaxAPriori