Fix error in logging with new account