Fix memory issue in accountconfiguration.