fix log stmt