upgrade version
fix generated keys bug