try to fix the bug in detecting accurary