Logic Error - selkey not set