fix when sec key not found in hashtable