fix duplicate logging