fixing loggin issue arise when loading the module