Try using PORTD instead of PortD