fix log check