Fixed issue with logger