fixed uninitialized error related to low frequencies of one or more characters