Fix bad logging