fix log statements