The purpose of counter flashing is to: