fix log exception