fixed bug with new logger