Fixed inconsistant format of storing priv keys.