fixing loging