Materials and methods for treating bile leakage are disclosed. A peptide comprising between about 7 amino acids to about 32 amino acids may be introduced to a target site. The peptide may undergo self-assembly upon adjustment of a pH level of the solution to a physiological pH level.