Fix duplicate logging