fixed loggin issue