Fixed error with logger