Fixed bugs in accuracy checking and accuracy.