seems you forgot to add external pull-ups....

i don't know wich pic you are using but try

OPTION_REG.7=0