Fix bug with group-task option activated