Why is the ridge vent not laying flat on the roof?

The ridge vent might not be laying flat on the roof because the nails are not long enough.

It could be the nails are pulling out of the roof deck. Air Vent recommends longer nails (2.5-inch) and ring shank style to prevent this from happening.