Bugfix: number of assigned tasks wasn't updating

When end_cycle button is clicked.