fix TRISB vs PORTB issue