Allow the food in the cooker to boil before placing the lid, and, once the pressure begins to escape, insert the valve. You can also refer to the cooker's manual for instructions on how to avoid overflowing.