Fixed typo in prune_by_length()