fix log statement