Remove buggy debug code