fixing logger issue