debug log fix for gather