fix bug logger