Given the other recent thread, I'm going to guess the OP is still emulating things.
If so, ports & pins -> inputs -> tick the box for emulating the index, and see if that fixs the problem.