Fixed problem with logger