Fix bug with tried tasks