Have you tried adjusting the bar?
A new latch may help?
But with the Quality of parts nowadays maybe not.
One more thing I have noticed,
Is the plastic hinge goes to the outside of the dash?
I have seen some that where on the inside and didn't act right when closing.