fixed concurrent exception on logging