What is connected to PortB.6 ?
Maybe you struggled into the read-modify-write-trouble...