Yeah, first step is to see if all four screws on top are tight. Second step is to take out the batteries, then remove all four screws on top, and carefully clean the underside of the top plate where it mates with the main body (mild abrasive pad and alcohol is good for this), and make sure the ground cable looped around the 510 is making good contact (a quick fix is to poke it in with a flatblade screwdriver). While in there, be careful around the ribbon cable for the display, it can be easily broken and the ground wire runs right by it. Once it's cleaned and you've done the best you can on the 510, screw it back together, making sure the screws are nice and tight (use a good tool to avoid camming out the head of the screws).
Optionally, you can run a bead of solder between the 510 cable and the brass nut to ensure a better connection, but I'd hold off on that, as that will for sure void your warranty as it's easy to spot, just taking the top off and cleaning things is not.
Before putting the batteries back in, clean the contact side of the battery cap, and the threads on both the battery caps and inside the flask as best you can (once again isopropyl alcohol is handy for this, as is an abrasive plastic pad). Use a paper towel to wipe up the alcohol, and keep at it until you stop seeing black on the towel.
Put the batteries back in, cross your fingers, and hit the fire switch.