Reduction of lead migration during drying of a gel