fixed accuracy bug