Fixed bug in computing maximum accuracy