fixed a bug where some sensitive information was being saved in logs.