LED flashing erratically.. HELP

Its soldered onto perfboard..

I thought originally it might be the slider but I've tried 3 different ones now and all the same. I would just replace the LED to see if it made a difference but it's a nightmare to access.