Fix JSON serialization when storing private-key in local-storage
User int instead string