fixed log associated errors