fix logoutput