Fix for error when avairable task does not exist