Sounds like it's only being held down by the secondary (safety) latch and the main latch isn't engaging. The main latch uses a rollover cam, it may be bent or rusted and unable to roll. The latches aren't expensive if yours is broken, about $70 Nissan list or about $20 on eBay.