First there is no RB8, there is a RB7 though which is the 8th bit.

Are you reading a DIP switch or something?