Fixing loggin