another fix

made sure it was using the key as the key, not num.

all working now.