Fix keyfile