Removed invalid ref and debug lines