Fix sequence frequency computation.