fixed bug with logger in router