ATmega328 random reset

Is the standalone version in a case? case properly grounded?

If not, you may get freezing, hangups, or random resets.