fix log errors