fixed accuracy being always zero