Logger bug fixed, other bugs