fixed bug with logger