Close the hatch tightly. The latch should catch securely and the places where the hatch meets the roof should be tightly closed. Put your fingers to that space. If you feel a draft of any kind, the hatch is losing heat and contributing to your ice dam problem.
Open the hatch. Scrape away excess ice, paint or weather sealers using the paint scraper. The old weather-stripping, caulk or insulation can cause the hatch to stay open as well.
Wipe the hatch door and opening with cloth rag and soapy water. Doing so removes any dust or debris that may be preventing the roof hatch from closing tightly. Let the area dry completely. This prepares the site for applying new weather sealers.
Apply your chosen sealer to the area, following the package instructions for application. Place the sealer on the interior of the home and not the exterior, and only where the hatch meets the roof.