fix issue with logging