That happened to me to. the dome light went on during a corner. but sometimes when i shut it it wouldnt close. by metal latch i mean the hinge, on the inside of the door jam. the metal thing. its looks like a upside down "U" or an "n"
i just had it moved farther away from the inside of the car, closer to the door, so the door would latch a little sooner. and now it closes perfect everytime.