Supplying power to a standalone ATMega328P-PU

I'm saying you should connect both pairs of pins. Vcc/Avcc and both Gnds.