Keyfile assignment issue