Remove erroneous debug code