fix PRIVATE and PUBLIC keys order for new()