fix for the case where a single task is returned