Fix remove debug code