What would cause the ridge vent to not lay flat on the roof after installation?

Use ring shank nails long enough to penetrate through to the underside of the roof deck.  

It sounds like the nails are pulling out of the deck. Use ring shank nails long enough to penetrate through to the underside of the roof deck.