Attiny13 odd behaviour sometimes
If you are testing your design with the programming lines still attached, don't do that. You should disconnect the Arduino programming lines from your Attiny, reset it, and then test the design.