Fix bug in description length calculation