Percolation: bug fix