fix wrong calculation of accuracy