fixed an issue with PORTB bit manipulation
fixed an issue with PORTB bit manipulation