Fixed bug in accuracy check where the parameters were only being computed once