fixed logging init bug