Fixed memory leak with water.