if its a rattle and a loud clunk every so often you may need to adjust the latch pins.
raise roof a little and put something soft in the gap in to stop it creeping back.
undo two screws (white arrows)
pull the roof trim from one side and work your way around, broken clips can be brought from ebay.
let roof go back and then loosen 6 screws, then its trial and error to find a place the bracket/pins are happy and quiet (probably best to mark the original position)