fixing one more issue with logging