err log fix