fix a bug when creating a new key without machines
Merge branch 'master' of https://github.com/mistio/mist.io