Puzzled over PWM with NPN transistor

I know that's what it says in the datasheet, but if I switch the wire from 5V input to GND, with the PWM pin running, I get two different meter readings, and it's only correct when I hook it up to GND. At a duty cycle of 128 it should be a symmetrical square wave so it should give the same reading both ways if the pin really was symmetrical.