Hi,
The chip has more than 8 analog inputs. ANSEL = 0 only sets the first 8 to digital and PortC.6 and PortC.7 which exhibits the issue is AN8 and AN9 respectively. Try adding ANSELH = 0 as well.

/Henrik.