bugfix: last chunk in loop wasn't considered in worst.