fix 0 length secret keyfile