Fixed errors in the percolation task.