this circuit is not working like that. The switch activated transistors are a mess; either, what i recommend, switch the LM317 directly with a hardware switch, or you use a single pnp transistor switching the base with a resistor to ground, emitter to the plus terminal of the supply - but that has to be a higher power model than a BC558; e.g. a BD140 - but that's all pretty silly for the purpose - use a switch - that's it.