Yup, thats the exact one.

Ok, i'll remove the pull-down resistors.

It must be something else that is making the CASE ELSE statement true then.

Cheers,

Steve