Fix bug in tasks display.