Fix error removing debug code