fix loggin in bug