[COMMENT] Fixed tasks relative to wrong last ID read from database.