fixing error with logger