Bugfix for populating tasks in reverse order.