fixes #1 can't save a new key.