fix nkeys