Fixed debug statements in internalink