fixing errors in log