Slightly improve accuracy in frequency table